package com.qf.entity;



import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘亚康
 * @since 2020-03-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shop_address")
@ApiModel(value="Address对象", description="")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址编号")
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    @ApiModelProperty(value = "收货人")
    private String consignee;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "收货省份")
    private String receivingProvince;

    @ApiModelProperty(value = "收货城市")
    private String receivingCity;

    @ApiModelProperty(value = "收货县、区")
    private String receivingConty;

    @ApiModelProperty(value = "详细地址")
    private String detailedAddress;

    @ApiModelProperty(value = "是否是默认地址,0：是，1：不是，只能有一个默认地址")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDefault;

    @ApiModelProperty(value = "是否删除，0：存在，1：删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer addressIsDelete;


}
